import request from '../utils/request'

export function list(params) {
  return request({
    url: '/member/memberFavorites/list',
    method: 'get',
    params: params
  })
}

export function favoritesCount() {
  return request({
    url: '/member/memberFavorites/count',
    method: 'get',
  })
}

export function del(params) {
  return request({
    url: '/member/memberFavorites/del',
    method: 'post',
    params:params
  })
}

export function exists(params) {
  return request({
    url: '/member/memberFavorites/exists',
    method: 'get',
    params: params
  })
}

export function add(data) {
  return request({
    url: '/member/memberFavorites/add',
    method: 'post',
    data: data
  })
}

